public class MaxInt
{
	public static void main(String[] args)
	{
           MaxInt m = new MaxInt();
                      String mm= m.fileNameEx("java.java.txt");
                      System.out.println(mm);
	}

	public int maxInt(int[] t)
	{
		int max = t[0];
		for (int i = 0; i < t.length; i++)
		{
			if (max < t[i])
			{
				max = t[i];
			}
		}
		return max;
	}
	public String fileNameEx(String file){
	        return file.substring(file.lastIndexOf(".")+1);
	}
}
